angular.module('purchasing-roles.router', [])
.config(function($stateProvider) {
  $stateProvider

    //历史采购单
    .state('app.purchase-order-list', {
      url: 'purchase/order-list',
      views: {
        'menuContent': {
          templateUrl: 'templates/purchasing/order-list-whm.html',
          controller: 'PurchaseOrderListCtrl'
        }
      }
    })
    //历史采购单详情
    .state('app.purchase-order-detail', {
      url: 'purchase/order-:_id',
      views: {
        'menuContent': {
          templateUrl: 'templates/purchasing/order-detail-whm.html',
          controller: 'OrderDetailCtrl'
        }
      }
    });
});